home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Taifun / Taifun 004 (1987-02-15)(Ossowski, Stefan)(DE)(PD).zip / Taifun 004 (1987-02-15)(Ossowski, Stefan)(DE)(PD).adf / MandelVroom / getfile / getfile.diffs < prev    next >
Text File  |  1987-03-04  |  2KB  |  57 lines

  1. diff -c -w OGetFile/getfile.c GetFile/getfile.c
  2. *** OGetFile/getfile.c    Tue May 19 01:45:05 1987
  3. --- GetFile/getfile.c    Mon May 18 23:58:30 1987
  4. ***************
  5. *** 161,170 ****
  6.   /* Open a requester "Window" */
  7.   
  8.   static struct NewWindow NewFiles = {
  9. !    160, 30, RWDTH,RHGHT, BCOL,FCOL, NL, /* Fill in AFTER opening ... */
  10.      SMART_REFRESH | ACTIVATE | RMBTRAP | WINDOWDRAG,
  11.      &og1,NL,NL, NL,
  12. !    NL, RWDTH,RHGHT,RWDTH,RHGHT, WBENCHSCREEN };
  13.   
  14.   IMPORT struct Library    *IntuitionBase;
  15.   
  16. --- 161,170 ----
  17.   /* Open a requester "Window" */
  18.   
  19.   static struct NewWindow NewFiles = {
  20. !    0, 0, RWDTH,RHGHT, BCOL,FCOL, NL, /* Fill in AFTER opening ... */
  21.      SMART_REFRESH | ACTIVATE | RMBTRAP | WINDOWDRAG,
  22.      &og1,NL,NL, NL,
  23. !    NL, RWDTH,RHGHT,RWDTH,RHGHT, CUSTOMSCREEN };
  24.   
  25.   IMPORT struct Library   *IntuitionBase;
  26.   
  27. ***************
  28. *** 223,234 ****
  29.      if ( ! (FirstEntry = (struct dirent *)AllocMem((long)DBUFSIZ,0L)) ||
  30.           ! (wRq = (struct Window *)OpenWindow( &NewFiles )) )
  31.         {
  32.         if ( FirstEntry )   FreeMem(FirstEntry,(long)DBUFSIZ);
  33.         /* notify("Can't Open Requester..."); */
  34.         FreeMem(dir_info,(long)sizeof(struct FileInfoBlock));
  35.         return(NL);
  36.         }
  37.      /* Set up directory, notify any errors...   */
  38.      if ( pnam = (char *)dinit(ddir) )   notify(pnam);
  39.   
  40. --- 223,237 ----
  41.      if ( ! (FirstEntry = (struct dirent *)AllocMem((long)DBUFSIZ,0L)) ||
  42.           ! (wRq = (struct Window *)OpenWindow( &NewFiles )) )
  43.         {
  44. +       if (!FirstEntry)
  45. +         notify("Can't Open first entry");
  46. +       if (!wRq)
  47. +         notify("Can't Open new window");
  48.         if ( FirstEntry )   FreeMem(FirstEntry,(long)DBUFSIZ);
  49.         /* notify("Can't Open Requester..."); */
  50.         FreeMem(dir_info,(long)sizeof(struct FileInfoBlock));
  51.         return(NL);
  52.         }
  53.      /* Set up directory, notify any errors...   */
  54.      if ( pnam = (char *)dinit(ddir) )   notify(pnam);
  55.   
  56.